<?php

use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Business\ComplainTypeController;
use App\Http\Controllers\Business\PlatfomTypeController;
use App\Http\Controllers\Business\PriceSettingController;
use App\Http\Controllers\Business\RecordDataColumnController;
use App\Http\Controllers\Business\ServiceCategoryController;
use App\Http\Controllers\Business\ShiftSettingController;
use App\Http\Controllers\Business\ShopProfileTeamController;
use App\Http\Controllers\Business\ShopProfileTemplateController;
use App\Http\Controllers\Business\SubAccountSourceController;
use App\Http\Controllers\Business\DepartmentQuoteController;

Route::middleware('auth:sanctum')->prefix('business')->group(function() {
    //
    Route::prefix('complain/type')->group(function() {
        Route::post('all',[ComplainTypeController::class,'getAllComplains']);
        Route::post('list',[ComplainTypeController::class,'index']);
        Route::post('add',[ComplainTypeController::class,'store']);
        Route::post('edit',[ComplainTypeController::class,'update']);
        Route::post('delete',[ComplainTypeController::class,'destroy']);
    });
    //
    Route::prefix('platform/type')->group(function() {
        Route::post('all',[PlatfomTypeController::class,'getAllPlatforms']);
        Route::post('list',[PlatfomTypeController::class,'index']);
        Route::post('add',[PlatfomTypeController::class,'store']);
        Route::post('edit',[PlatfomTypeController::class,'update']);
        Route::post('delete',[PlatfomTypeController::class,'destroy']);
    });
    //
    Route::prefix('price/set')->group(function() {
        Route::post('all',[PriceSettingController::class,'getAllPriceSets']);
        Route::post('list',[PriceSettingController::class,'index']);
        Route::post('add',[PriceSettingController::class,'store']);
        Route::post('edit',[PriceSettingController::class,'update']);
        Route::post('delete',[PriceSettingController::class,'destroy']);
    });
    //
    Route::prefix('record/column')->group(function() {
        Route::post('all',[RecordDataColumnController::class,'getAllCustomColumns']);
        Route::post('list',[RecordDataColumnController::class,'index']);
        Route::post('add',[RecordDataColumnController::class,'store']);
        Route::post('edit',[RecordDataColumnController::class,'update']);
        Route::post('detail',[RecordDataColumnController::class,'show']);
        Route::post('delete',[RecordDataColumnController::class,'destroy']);
    });
    //
    Route::prefix('service/category')->group(function() {
        Route::post('all',[ServiceCategoryController::class,'getAllCategories']);
        Route::post('list',[ServiceCategoryController::class,'index']);
        Route::post('add',[ServiceCategoryController::class,'store']);
        Route::post('edit',[ServiceCategoryController::class,'update']);
        Route::post('delete',[ServiceCategoryController::class,'destroy']);
    });
    //
    Route::prefix('shift/set')->group(function() {
        Route::post('all',[ShiftSettingController::class,'getAllShifts']);
        Route::post('list',[ShiftSettingController::class,'index']);
        Route::post('add',[ShiftSettingController::class,'store']);
        Route::post('edit',[ShiftSettingController::class,'update']);
        Route::post('delete',[ShiftSettingController::class,'destroy']);
    });
    //
    Route::prefix('shop/profile')->group(function() {
        Route::prefix('team')->group(function() {
            Route::post('all',[ShopProfileTeamController::class,'getAllTeams']);
            Route::post('list',[ShopProfileTeamController::class,'index']);
            Route::post('add',[ShopProfileTeamController::class,'store']);
            Route::post('edit',[ShopProfileTeamController::class,'update']);
            Route::post('delete',[ShopProfileTeamController::class,'destroy']);
        });
        Route::prefix('template')->group(function() {
            Route::post('all',[ShopProfileTemplateController::class,'getAllTemplates']);
            Route::post('list',[ShopProfileTemplateController::class,'index']);
            Route::post('add',[ShopProfileTemplateController::class,'store']);
            Route::post('edit',[ShopProfileTemplateController::class,'update']);
            Route::post('delete',[ShopProfileTemplateController::class,'destroy']);
        });
    });
    //
    Route::prefix('account/source')->group(function() {
        Route::post('all',[SubAccountSourceController::class,'getAllSources']);
        Route::post('list',[SubAccountSourceController::class,'index']);
        Route::post('add',[SubAccountSourceController::class,'store']);
        Route::post('edit',[SubAccountSourceController::class,'update']);
        Route::post('delete',[SubAccountSourceController::class,'destroy']);
    });
    //
    Route::prefix('department/quote')->group(function() {
        Route::post('all',[DepartmentQuoteController::class,'getAllQuotes']);
        Route::post('list',[DepartmentQuoteController::class,'index']);
        Route::post('add',[DepartmentQuoteController::class,'store']);
        Route::post('edit',[DepartmentQuoteController::class,'update']);
        Route::post('delete',[DepartmentQuoteController::class,'destroy']);
    });

});

